import {post,get} from "@/utils/httpHandler";

export default class {
    moduleName = ""
    constructor(moduleName) {
        this.moduleName = moduleName
    }
    async post(url, data) {
        return await post(`/${this.moduleName}/${url}`, data)
    }

    async get(url, data) {
        return await get(`/${this.moduleName}/${url}`, data)
    }
}
